home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_03_02
/
3n02052b
< prev
next >
Wrap
Text File
|
1991-09-16
|
615b
|
23 lines
// child.c example 3b
// cl /AL /Lp child.c
// execpgm
// Notice you do not need to bind this program unless you want to run it as
// a stand alone. Execpgm is already bound and therefore the processor is
// already in protected mode by the time this program is reached.
#define NMSG 1800
unsigned far pascal DosSleep(unsigned long);
main()
{
int i;
printf(" child started ");
for ( i = 1; i <= NMSG; i++) {
printf("C");
DosSleep(0); // Lets the DOS extender know to give
} // time to other tasks (execpgm.c)
printf(" child ended ");
}